<?php
include(TPLPATH . '/admin_set/miaozhe.php');
$parameter = act_wap_miaozhe();
$parameter['webtitle'] = $dd_tpl_data['title'] . '触屏版';
extract($parameter);
include(TPLPATH . '/inc/header.tpl.php'); ?>
    <!--幻灯片开始-->
    <style type="text/css">
        .indexdl {
            background: #FFFFFF;
            width: 100%;
            height: 0px;
            padding: 15px 0 25px 0;
        }

        .tuichu {
            background: <?=$dd_tpl_data['color']?>;
            width: 96%;
            float: left;
            padding: 15px 0;
            margin-left: 5px;
            margin-top: 5px;
            font-size: 16px;
            text-align: center;
            color: #fff;
            border-radius: 4px;
        }

        .tuichu a {
            text-align: center;
            color: #fff;
            font-weight: 600
        }
        .jy_w_buy
        {
            float:right; overflow:hidden; text-align:right
        }
        .jy_w_buy .tb
        {
            width:20px; margin-left:15px;
            height:20px;
            float:right;
            color:#CE0000;
            font-size:14px;
            line-height:20px;
            margin-top:5px;
            *margin-top:2px;
        }
        .jy_w_buy .tmall
        {
            width:20px;margin-left:15px;
            height:20px;
            float:right;
            color:#CE0000;
            font-size:15px;
            line-height:20px;
            margin-top:5px;
            *margin-top:2px;
        }
        .jy_w_buy .jd
        {
            min-width:20px;
            height:20px;
            float:right;
            color:#CE0000;
            font-size:15px;
            line-height:20px;
            margin-top:5px;
            *margin-top:2px;
        }
        .jy_w_buy .paipai
        {
            min-width:50px;
            height:20px;
            float:right;
            color:#CE0000;
            font-size:15px;
            line-height:20px;
            margin-top:5px;
            *margin-top:2px;
        }
        .jy_w_buy .tb i
        {
            width:20px;
            height:20px; vertical-align:bottom; margin-bottom:3px;
            display:inline-block;
            background:url(m/template/miaozhewap/inc/images/tb.png) no-repeat;
            margin-right:5px;
        }
        .jy_w_buy .tmall i
        {
            width:20px;
            height:20px;vertical-align:bottom; margin-bottom:3px;
            display:inline-block;
            background:url(m/template/miaozhewap/inc/images/tmall_ico.png) no-repeat;
            margin-right:5px;
        }
        .jy_w_buy .jd i
        {
            width:20px;
            height:20px;vertical-align:bottom; margin-bottom:3px;
            display:inline-block;
            background:url(m/template/miaozhewap/inc/images/jd_ico.png) no-repeat;
            margin-right:5px;
        }

        .jy_w_buy .paipai i
        {
            width:15px;
            height:15px;vertical-align:bottom; margin-bottom:3px;
            display:inline-block;
            background:url(m/template/miaozhewap/inc/images/pai_ico.png) no-repeat;
            margin-right:5px;
        }
    </style>
    <div style="margin-top:44px"></div>
    <ul class="remai2 shuju_load">
        <?php foreach ($shuju_data as $k => $row) { ?>
            <li class="claer"><a href="<?= $row['url'] ?>">
                    <span class="tupian"> <img data-original="<?= tb_img($row['img'], 800) ?>"
                                               title="<?= $row['title'] ?>" class="lazy"
                                               src="<?= $dd_tpl_data['loading_img'] ?>" alt="<?= $row['title'] ?>"
                                               border="0"/> </span> <?php if ($row['is_new']) { ?><span
                            class="xinpin"></span>  <?php } ?>  </a>
				<span class="jiage">
                    <span>￥</span><?= $row['quanhoujia'] ?>
                    <?php if ($code == 'zhidemai') { ?><?php } else { ?>
                        <del><?= $row['price'] ?></del> <?php } ?>
                    <span class="baoyou"><?= $row['laiyuan'] ?></span> </span>
                <div class="inblock guan" style="position:absolute;top:0;left:0;">
                    <div class="jy_w_buy">
                        <?php if ($row['laiyuan_type'] == 1) { ?>
                            <div title="淘宝" class="tb"><i></i></div><?php } ?>

                        <?php if ($row['laiyuan_type'] == 2) { ?>
                            <div title="天猫" class="tmall"><i></i></div><?php } ?>
                        <?php if ($row['laiyuan_type'] == 3) { ?>
                            <div title="京东商城" class="jd"><i></i></div><?php } ?>
                        <?php if ($row['laiyuan_type'] == 4) { ?>
                            <div title="拍拍" class="paipai"><i></i></div><?php } ?>
                    </div>
                </div>			
				<span class="xiaoliang" style="float:left;color:#808080;display:block;margin-left:5px;margin-top:5px;">月销&nbsp;<?= $row['xiaoliang'] ?></span>
				<span class="pingfen" style="float:right;color:#808080;display:block;margin-right:5px;margin-top:5px;">评分&nbsp;<?= $row['pingfen'] ?></span>
				<div style="clear:both;"></div>
                <?php if ($row['price_man'] > 0) { ?>
                    <a href="<?= $row['lq_url'] ? $row['lq_url'] : 'javascript:void(0)' ?>">
                        <div class="quan_img"><span class="num_money left"><?= $row['price_jian'] ?></span></div>
                    </a>  <?php } ?>
                <a href="<?= $row['url'] ?>"><span class="biaoti"><?= $row['title'] ?></span></a>
                
            </li>
        <?php } ?>
    </ul>
    <div class="clear"></div>
    <div style="height:10px;line-height:10px; clear:both"></div>


<?php /*?><div class="tuichu"><a  href="<?=wap_l('goods','index',array('code'=>''.$dd_tpl_data['bsm'].''))?>">查看更多</a></div><?php */ ?>

    </div>
    <div class="clear"></div>
    <div style="height:18px;line-height:18px; clear:both"></div>
    <a href="javascript:scroll(0,0)" hidefocus="true" title="回到顶部" id="scrollTop"></a>
    <script type="text/javascript" src="<?= TPLURL ?>/inc/js/scroll.js"></script>

<?php include(TPLPATH . '/inc/footer.tpl.php'); ?>